package cn.wmw.xyy.service.impl;

import cn.wmw.xyy.domain.PayFlow;
import cn.wmw.xyy.mapper.PayFlowMapper;
import cn.wmw.xyy.service.IPayFlowService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wmw
 * @since 2023-01-10
 */
@Service
public class PayFlowServiceImpl extends ServiceImpl<PayFlowMapper, PayFlow> implements IPayFlowService {


    @Override
    public PayFlow selectByOrderNo(String orderNo) {
        Wrapper<PayFlow> wrapper = new EntityWrapper<>();
        wrapper.eq("out_trade_no", orderNo);
        return selectOne(wrapper);

    }
}
